package br.uff.mic1.model;

public class INCR {

	private String value;
	
	public void setValue(String mpcValue)
	{
		int mpc = Integer.parseInt(mpcValue, 2);
		mpc++;
		this.value = Integer.toBinaryString(mpc);
		
		//completar com zero
		while (this.value.length() < 8)
			this.value = "0"+this.value;
	}
	
	public String getValue()
	{
		return this.value;
	}

	@Override
	public String toString() {
		return "INCR [value=" + value + "]";
	}
	
	
}
